<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/headHome.jsp"%>
<div class="right">

<%--    <a class="viewUser" href="javascript:;" ><img src="${pageContext.request.contextPath }/statics/images/view.png" alt="领养" title="领养"/></a>--%>
    <!--用户-->
<%--    <input style="margin-top: 20px;background-color: #007CB7;padding: 10px;color: white;border: unset" type="button" value="申请领养" onclick="location='${pageContext.request.contextPath}/sys/apply/toApply'"/>--%>
    <table style="margin-top: 20px" class="supplierTable" cellpadding="0" cellspacing="0">
        <tr class="firstTr">
            <th width="15%">编号</th>
            <th width="15%">用户姓名</th>
            <th width="10%">宠物名字</th>
            <th width="10%">申请时间</th>
            <th width="10%">申请理由</th>
            <th width="10%">状态</th>
            <th width="30%">操作</th>
        </tr>

        <c:forEach var="item" items="${applyList }" varStatus="status">

        <c:forEach var="user" items="${applyList }" varStatus="status">

            <tr>

                <td>
                    <span>${item.id }</span>
                </td>
                <td>
                    <span>${item.name }</span>
                </td>
                <td>
                    <span>${item.petName}</span>
                </td>

                <td>
                    <span>${item.applyTime}</span>
                </td>
                <td>
                    <span>${item.message}</span>
                </td>
                <td>
							<span>
								<c:if test="${item.state==1}">已领养</c:if>
								<c:if test="${item.state==2}">同意</c:if>
							</span>
                </td>
                <td>

                       <span><a class="modifyUser" href="${pageContext.request.contextPath}/sys/apply/toAdd?id=${user.id}" ><img src="${pageContext.request.contextPath }/statics/images/upd.png" alt="修改" title="修改"/></a></span>
                       </td>
            </tr>
        </c:forEach>
    </table>
    <input type="hidden" id="totalPageCount" value="${totalPageCount}"/>
    <c:import url="/WEB-INF/jsp/sysRole/rollpage.jsp">
        <c:param name="totalCount" value="${totalCount}"/>
        <c:param name="currentPageNo" value="${currentPageNo}"/>
        <c:param name="totalPageCount" value="${totalPageCount}"/>
    </c:import>


    <!--点击删除按钮后弹出的页面-->
    <div class="zhezhao"></div>
    <div class="remove" id="removeUse">
        <div class="removerChid">
            <h2>提示</h2>
            <div class="removeMain">
                <p>确定删除该用户吗？</p>
                <a href="#" id="yes">是</a>
                <a href="#" id="no">否</a>
            </div>
        </div>
    </div>

    <%@include file="/WEB-INF/jsp/common/foot.jsp" %>
    <script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/sysUser/list.js"></script>
